<div class="easyui-layout" data-options="fit:true,border:false">
	<div class="easyui-panel edit-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
		<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 10px;">
			<div style="height:auto;widtd:auto">
					<div style="margin-bottom:5px" class="edit-btn">
					
					</div>  		
		    </div>
		    
			<form class="doc-form main-form" metdod="post">
				<fieldset>				
					<input name="id" id="id"  type="hidden"/>
					<input name="createTime" id="createTime"  type="hidden"/>
					<input name="creater" id="creater"  type="hidden"/>
					<input name="state" id="state"  type="hidden"/>
					<input name="typeId" id="typeId"  type="hidden"/>
					<input name="lobid" id="lobid"  type="hidden"/>
					<input name="status" id="status"  type="hidden"/>
					<input name="public_dept_id" id="public_dept_id"  type="hidden"/>
					<input name="public_user_id" id="public_user_id"  type="hidden"/>
					 <table>
						 <tr>
						 	
						 	<th>文档名称</th>
							<td><input name="name" id="name" type="text" style="width: 310px;" class="easyui-textbox easyui-validatebox" data-options="required:true"/></td>
							<th>文档编号</th>
							<td><input name="bizno" id="bizno" style="width: 310px;" class="easyui-textbox easyui-validatebox"  type="text"/></td>						    
						 </tr>
						 <tr>					    
							<th>公开状态</th>
							<td>
								<select id="state_id" name="state_id" type="text" style="width: 310px;" class="easyui-combobox easyui-validatebox"  data-options="required:true" >
									<option value="1">是</option>
									<option value="0" selected="true">否</option>
								</select>
							</td>
							<th>排序编号</th>
							<td><input name="sortedid" id="sortedid" type="text" style="width: 310px;" class="easyui-textbox" /></td>
							
						
							
						 </tr>
						 <tr>
						 	<th>是否置顶</th>
							<td>
								
								<select id="isTop" name="isTop" type="text" style="width: 310px;" class="easyui-combobox">
									<option value="1" >是</option>
									<option value="0" selected="true">否</option>
								</select>
							</td>
						 	<th>文档等级</th>
							<td>
								<select id="public_level" name="public_level" type="text" style="width: 310px;" class="easyui-combobox">
									<option value="1" selected="true">全体人员</option>									
									<option value="4">管理人员</option>
									<option value="5">院领导</option>									
								</select>
							</td>
						 </tr>
						 
						 <tr>
						 	<th>发布部门</th>
							<td><input name="public_dept_name" id="public_dept_name" style="width: 310px;" class="easyui-textbox"  type="text" data-options="required:true,readonly:true"/></td>
						 	<th>发布人员</th>
							<td><input name="public_user_name" id="public_user_name" buttonText="人员选择" type="text" style="width: 310px;" class="easyui-textbox" data-options="required:true,editable:false"/></td>						    
						 </tr>
						 <tr>					    
							<th>发布时间</th>
							<td><input id="public_date" name="public_date" type="text" style="width: 310px;" class="easyui-datetimebox"  data-options="required:true" /></td>
						
							<th>截止时间</th>
							<td><input name="unpublic_date" id="unpublic_date" type="text" style="width: 310px;" class="easyui-datetimebox" /></td>
						 </tr>						 			 
						 <tr>
						 	<th>附件页面</th>
							<td colspan="3">
								<div>
									<input type="radio" id="radio1" name="archiveContent" value="1"/>是 
									<input type="radio" id="radio2" name="archiveContent" value="0"/>否 
									<span style="padding-left:20px;color:blue">选择是,文档附件将直接显示为页面内容</span>
								</div>
							</td>
						 </tr>
						<tr>
							
							<td colspan="4"><div id="lob_contents" name="lob_contents"   style="width: 750px;height: 400px"/></td>
						</tr>			 
						
					 </table>
				</fieldset>
			</form>
		</div>
		
	</div>
	<div class="easyui-panel upload-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
		<div class="archive-btn">
			<a href="javascript:void(0);" class="easyui-linkbutton file_upload_btn" iconcls="icon-add" plain="true">上传</a>
			<a href="javascript:void(0);" class="easyui-linkbutton file_upload_btn" iconcls="icon-remove" plain="true">删除</a>
			<a href="javascript:void(0);" class="easyui-linkbutton file_upload_btn" iconcls="icon-undo" plain="true">返回</a>
	    </div>
		<div class="table-archive"/>
		<form class="upload-form">
			<div id="queue"></div>
			<input id="file_upload" name="file_upload" type="file" multiple="true">
			
		</form>
	</div>
</div>
<script>

requirejs(['docdetailEdit','party','domReady!'],function(dept,party,doc){
	dept.init({
		doc:doc,
		upload_queue_id:'party_queue',
		upload_file_id:'party_file_upload',
		initElement:party.initElement,
		beforeSubmit:party.beforeSubmit,
		auditEnable:true	
	});	
});

</script>